package com.hch.datastructure.linkedlist;

public class DoubleNode<T> {
    private T data;
    private Integer serialNum;
    private DoubleNode<T> pre;
    private DoubleNode<T> next;

    public DoubleNode(int serialNum ,T data) {
        this.serialNum = serialNum;
        this.data=data;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public Integer getSerialNum() {
        return serialNum;
    }

    public void setSerialNum(Integer serialNum) {
        this.serialNum = serialNum;
    }

    public DoubleNode<T> getPre() {
        return pre;
    }

    public void setPre(DoubleNode<T> pre) {
        this.pre = pre;
    }

    public DoubleNode<T> getNext() {
        return next;
    }

    public void setNext(DoubleNode<T> next) {
        this.next = next;
    }
}
